﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class GeometryToWKT
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class GeometryToWKT
   ">
    <meta name="generator" content="docfx 2.40.12.0">
    
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    <meta property="docfx:rel" content="../">
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../images/logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items">
            <p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
          </div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT">
  
  
  <h1 id="Mapsui_Geometries_WellKnownText_GeometryToWKT" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT" class="text-break">Class GeometryToWKT
  </h1>
  <div class="markdown level0 summary"><p>Outputs the textual representation of a <a class="xref" href="Mapsui.Geometries.Geometry.html">Geometry</a> instance.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">GeometryToWKT</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Mapsui.Geometries.WellKnownText.html">Mapsui.Geometries.WellKnownText</a></h6>
  <h6><strong>Assembly</strong>: Mapsui.Geometries.dll</h6>
  <h5 id="Mapsui_Geometries_WellKnownText_GeometryToWKT_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class GeometryToWKT : object</code></pre>
  </div>
  <h5 id="Mapsui_Geometries_WellKnownText_GeometryToWKT_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><p>The Well-Known Text (WKT) representation of Geometry is designed to exchange geometry data in ASCII form.</p>
Examples of WKT representations of geometry objects are:
<table><thead><tr><th>Geometry </th><th>WKT Representation</th></tr></thead><tbody><tr><td>A Point</td><td>POINT(15 20)<br> Note that point coordinates are specified with no separating comma.</td></tr><tr><td>A LineString with four points:</td><td>LINESTRING(0 0, 10 10, 20 25, 50 60)</td></tr><tr><td>A Polygon with one exterior ring and one interior ring:</td><td>POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5))</td></tr><tr><td>A MultiPoint with three Point values:</td><td>MULTIPOINT(0 0, 20 20, 60 60)</td></tr><tr><td>A MultiLineString with two LineString values:</td><td>MULTILINESTRING((10 10, 20 20), (15 15, 30 15))</td></tr><tr><td>A MultiPolygon with two Polygon values:</td><td>MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((5 5,7 5,7 7,5 7, 5 5)))</td></tr><tr><td>A GeometryCollection consisting of two Point values and one LineString:</td><td>GEOMETRYCOLLECTION(POINT(10 10), POINT(30 30), LINESTRING(15 15, 20 20))</td></tr></tbody></table></p>
</div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_Mapsui_Geometries_IGeometry_.md&amp;value=---%0Auid%3A%20Mapsui.Geometries.WellKnownText.GeometryToWKT.Write(Mapsui.Geometries.IGeometry)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Geometries/Converters/WellKnownText/GeometryToWKT.cs/#L94">View Source</a>
  </span>
  <a id="Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT.Write*"></a>
  <h4 id="Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_Mapsui_Geometries_IGeometry_" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT.Write(Mapsui.Geometries.IGeometry)">Write(IGeometry)</h4>
  <div class="markdown level1 summary"><p>Converts a Geometry to its Well-known Text representation.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string Write(IGeometry geometry)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.IGeometry.html">IGeometry</a></td>
        <td><span class="parametername">geometry</span></td>
        <td><p>A Geometry to write.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>A &lt;Geometry Tagged Text&gt; string (see the OpenGIS Simple
Features Specification)</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_Mapsui_Geometries_IGeometry_StringWriter_.md&amp;value=---%0Auid%3A%20Mapsui.Geometries.WellKnownText.GeometryToWKT.Write(Mapsui.Geometries.IGeometry%2CStringWriter)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Geometries/Converters/WellKnownText/GeometryToWKT.cs/#L110">View Source</a>
  </span>
  <a id="Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT.Write*"></a>
  <h4 id="Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_Mapsui_Geometries_IGeometry_StringWriter_" data-uid="Mapsui.Geometries.WellKnownText.GeometryToWKT.Write(Mapsui.Geometries.IGeometry,StringWriter)">Write(IGeometry, StringWriter)</h4>
  <div class="markdown level1 summary"><p>Converts a Geometry to its Well-known Text representation.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Write(IGeometry geometry, StringWriter writer)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Mapsui.Geometries.IGeometry.html">IGeometry</a></td>
        <td><span class="parametername">geometry</span></td>
        <td><p>A geometry to process.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">StringWriter</span></td>
        <td><span class="parametername">writer</span></td>
        <td><p>Stream to write out the geometry&apos;s text representation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="Mapsui_Geometries_WellKnownText_GeometryToWKT_Write_Mapsui_Geometries_IGeometry_StringWriter__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>Geometry is written to the output stream as &lt;Gemoetry Tagged Text&gt; string (see the OpenGIS
Simple Features Specification).</p>
</div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/new/master/apiSpec/new?filename=Mapsui_Geometries_WellKnownText_GeometryToWKT.md&amp;value=---%0Auid%3A%20Mapsui.Geometries.WellKnownText.GeometryToWKT%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/Mapsui/Mapsui/blob/master/Mapsui.Geometries/Converters/WellKnownText/GeometryToWKT.cs/#L84" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
